package com.hgkj.cloud.base.service;

import com.hgkj.cloud.base.common.PageInfo;
import com.hgkj.cloud.base.domain.SysTenants;

import java.util.List;
import java.util.Map;

public interface SysTenantsService {

    int deleteByPrimaryKey(Long id);

    int insert(SysTenants record);

    int insertSelective(SysTenants record);

    SysTenants selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysTenants record);

    int updateByPrimaryKey(SysTenants record);

    SysTenants getTenantByCode(String code);

    SysTenants getTenantInfo(Map<String,Object> map);

    List<SysTenants> listTenants(PageInfo pi, Map<String,Object> map);

    List<SysTenants> listAllTenants();

    List<SysTenants> listSearchTenants(Map<String, Object> map);

    List<SysTenants> listSonTenants(Long father_id);

    Long listAllTenantsCount(Map<String, Object> map);

    Long findAddTenantsCount(Map<String, Object> map);

    List<SysTenants> listAllSystemTenants(PageInfo pi, Map<String, Object> map);

    SysTenants findTopTenant();

    int disableTenant(Long id);

    int enalbeTenant(SysTenants record);

    List<SysTenants> backendGetListSonTenant(Long father_id);

    SysTenants getSimpleTenantById(Long id);

    //
    SysTenants getTenantById(Long id);
    SysTenants getTenantByIds(Long tenant_id);
    List<SysTenants> getAllTenant();

    //4a
     void deleteEnabledUser ();

     void deleteEnabledTenants ();

     void deleteEnabledFramework ();

    int updateTenantCreateDate(String string);
    int deleteTenantCreateDate();

    //

    List<SysTenants> listDataByMap(Map<String, Object> map);
}
